package com.lc.question.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

//计划
@ApiModel("计划实体类")
public class Plan {

    @ApiModelProperty("任务ID")
    private int plan_Id;
    @ApiModelProperty("发布人ID")
    private String pub_Id;//发布人Id
    @ApiModelProperty("发布人姓名")
    private String plan_name;
    @ApiModelProperty("创建时间")
    private Date create_time;
    @ApiModelProperty("结束时间")
    private Date over_time;
    @ApiModelProperty("针对的用户对象")
    private String obj_user;
    @ApiModelProperty("问卷表ID")
    private int tab_Id;
    @ApiModelProperty("任务状态")
    private String plan_state;
    @ApiModelProperty("备注")
    private String t_text;

    public Plan() {
    }

    public Plan(int plan_Id, String pub_Id, String plan_name, Date create_time, Date over_time, String obj_user, int tab_Id, String plan_state, String t_text) {
        this.plan_Id = plan_Id;
        this.pub_Id = pub_Id;
        this.plan_name = plan_name;
        this.create_time = create_time;
        this.over_time = over_time;
        this.obj_user = obj_user;
        this.tab_Id = tab_Id;
        this.plan_state = plan_state;
        if (t_text==null){
            this.t_text = "";
        } else{
            this.t_text = t_text;
        }
    }

    public Plan(int plan_Id, String pub_Id, String plan_name, Date create_time, Date over_time, String obj_user, int tab_Id, String plan_state) {
        this.plan_Id = plan_Id;
        this.pub_Id = pub_Id;
        this.plan_name = plan_name;
        this.create_time = create_time;
        this.over_time = over_time;
        this.obj_user = obj_user;
        this.tab_Id = tab_Id;
        this.plan_state = plan_state;
    }

    public String getPub_Id() {
        return pub_Id;
    }

    public void setPub_Id(String pub_Id) {
        this.pub_Id = pub_Id;
    }

    public int getPlan_Id() {
        return plan_Id;
    }

    public void setPlan_Id(int plan_Id) {
        this.plan_Id = plan_Id;
    }

    public String getPlan_name() {
        return plan_name;
    }

    public void setPlan_name(String plan_name) {
        this.plan_name = plan_name;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getOver_time() {
        return over_time;
    }

    public void setOver_time(Date over_time) {
        this.over_time = over_time;
    }

    public String getObj_user() {
        return obj_user;
    }

    public void setObj_user(String obj_user) {
        this.obj_user = obj_user;
    }

    public int getTab_Id() {
        return tab_Id;
    }

    public void setTab_Id(int tab_Id) {
        this.tab_Id = tab_Id;
    }

    public String getPlan_state() {
        return plan_state;
    }

    public void setPlan_state(String plan_state) {
        this.plan_state = plan_state;
    }

    public String getT_text() {
        return t_text;
    }

    public void setT_text(String t_text) {
        this.t_text = t_text;
    }
}
